package cn.hnh.service.impl;

import cn.hnh.constrant.ResultInfo;
import cn.hnh.mapper.AboutMapper;
import cn.hnh.service.AboutService;
import cn.hnh.vo.AboutVo;
import cn.hnh.vo.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author HuangNianHong
 * @Time 2021/1/5
 */
@Service
public class AboutServiceImpl implements AboutService {
    @Autowired
    private AboutMapper aboutMapper;
    @Override
    public Result<AboutVo> getAbout() {
        return new Result<>(ResultInfo.SUCCESS_CODE,ResultInfo.SUCCESS_MESSAGE,aboutMapper.getAbout());
    }
}
